package net.hn.hnms.biz.plan.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 带值班人员信息
 *
 * @author ly
 * @since 1.0.0 2022-08-16
 */
@Data
@ApiModel("带值班人员信息")
public class DispatchKeepWatchPersonReq extends BaseReq {

	/**
	 * 主键ID
	 */
	@ApiModelProperty(value = "id")
	private String keepWatchPersonId;

	/**
	 * 矿编码
	 */
	@ApiModelProperty(value = "煤矿编号")
	private String mineCode;

	/**
	 * 人员姓名
	 */
	@ApiModelProperty(value = "人员姓名")
	@NotBlank(message = "人员姓名不能为空")
	@Length(max = 32,message = "人员姓名长度不能超过32个字符")
	private String keepWatchPersonName;

	/**
	 * 人员电话
	 */
	@ApiModelProperty(value = "人员电话")
	@NotBlank(message = "人员电话不能为空")
	@Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}", message = "人员电话输入不正确")
	private String keepWatchPersonPhone;

	/**
	 * 人员职务
	 */
	@ApiModelProperty(value = "人员职务")
//	@NotBlank(message = "人员职务不能为空")
	@Length(max = 32,message = "人员职务长度不能超过32个字符")
	private String keepWatchPersonPost;

	@ApiModelProperty(value = "人员类型 1:值班人员 2:带班人员 3:都是")
	@NotBlank(message = "请选择人员类型")
	private String keepWatchPersonType;

	@ApiModelProperty(value = "人员职务类型")
	private String postType;

}